#!/bin/bash
#
# This script places zenmp3 in an executable path directory, places the
# launcher shortcut in the application index and assigns is a nice icon.
#
# BY NO MEANS this script installs dependencies; I have no idea what package
# manager you're using, so I'd rather not even try to do it for you.
#
# The dependencies you should install are:
# - youtube-dl
# - ffmpeg or avconv (either one works, pick your choice)
#
# See `howto_install.md' for more information.
#

chmod 755 zenmp3
cp src/zenmp3 /usr/local/bin || echo "Try running as root, maybe?"
cp zenmp3.desktop /usr/share/applications/ || echo "Try running as root, maybe?"
cp zenmp3.png /usr/share/icons/default/ || echo "Try running as root, maybe?"

test -f /usr/local/bin/zenmp3 && echo "Done. Check your applications menu!"
